package com.wjy.game.message.data.res;

import com.wjy.game.entity.Player;
import com.wjy.game.entity.Watcher;
import com.wjy.game.enums.Operate;
import com.wjy.game.message.ResMessageData;
import lombok.Data;

import java.util.List;

/**
 * @author wjy
 * @date 2025/5/27 16:25
 * @description 房间列表
 */
@Data
public class ListRoomRes implements ResMessageData {

    private List<Room> rooms;

    @Override
    public Operate operate() {
        return Operate.LIST_ROOM;
    }

    @Data
    public static class Room {

        private String roomId;

        private String roomName;

        private List<Player> players;

        private List<Watcher> watchers;
    }
}
